package com.power.sifa.statistics.model.enumeration;

public enum AddressAdidEnum {


    A(AddressAdid.A, "DH"),
    B(AddressAdid.B, "XH"),
    C(AddressAdid.C, "QYP"),
    D(AddressAdid.D, "WL"),
    E(AddressAdid.F, "GX"),
    F(AddressAdid.E, "JK"),
    G(AddressAdid.G, "QSH"),
    H(AddressAdid.H, "XJ"),
    I(AddressAdid.I, "HGT"),
    J(AddressAdid.J, "NCX"),
    K(AddressAdid.H, "AY"),
    L(AddressAdid.L, "JX"),
    O("360100", "NCS");

    private String value;
    private String typeName;

    AddressAdidEnum(String value, String typeName) {
        this.value = value;
        this.typeName = typeName;
    }

    public String getValue() {
        return value;
    }

    public String getTypeName() {
        return typeName;
    }

    public static String getTypeNameByValue(String value) {
        for (AddressAdidEnum type : AddressAdidEnum.values()) {
            if (type.getValue().equals(value)) {
                return type.getTypeName();
            }
        }
        return null;
    }
}
